allCards = [
	# 黑桃
	102,#102,
	103,#103,
	104,#104,
	105,#105,
	106,#106,
	107,#107,
	108,#108,
	109,#109,
	110,#110,
	111,#111,
	112,#112,
	113,#113,
	114,#114,

	# 红桃
	202,#202,
	203,#203,
	204,#204,
	205,#205,
	206,#206,
	207,#207,
	208,#208,
	209,#209,
	210,#210,
	211,#211,
	212,#212,
	213,#213,
	214,#214,

	# 梅花
	302,#302,
	303,#303,
	304,#304,
	305,#305,
	306,#306,
	307,#307,
	308,#308,
	309,#309,
	310,#310,
	311,#311,
	312,#312,
	313,#313,
	314,#314,

	# 方块
	402,#402,
	403,#403,
	404,#404,
	405,#405,
	406,#406,
	407,#407,
	408,#408,
	409,#409,
	410,#410,
	411,#411,
	412,#412,
	413,#413,
	414,#414,

	# 大小王
	501,#501,
	502,#502,
]

class CardType:
	none = 0
	heitao = 1
	hongtao = 2
	meihua = 3
	fangkuai = 4

# 底牌数量
DipaiNum = 3

WeightToCards = {
15 : [102,202,302,402],
 3 : [103,203,303,403],
 4 : [104,204,304,404],
 5 : [105,205,305,405],
 6 : [106,206,306,406],
 7 : [107,207,307,407],
 8 : [108,208,308,408],
 9 : [109,209,309,409],
10 : [110,210,310,410],
11 : [111,211,311,411],
12 : [112,212,312,412],
13 : [113,213,313,413],
14 : [114,214,314,414],
16 : [501],
17 : [502],
}

CardWeight = {
102: 15,
103:  3,
104:  4,
105:  5,
106:  6,
107:  7,
108:  8,
109:  9,
110: 10,
111: 11,
112: 12,
113: 13,
114: 14,

202: 15,
203:  3,
204:  4,
205:  5,
206:  6,
207:  7,
208:  8,
209:  9,
210: 10,
211: 11,
212: 12,
213: 13,
214: 14,

302: 15,
303:  3,
304:  4,
305:  5,
306:  6,
307:  7,
308:  8,
309:  9,
310: 10,
311: 11,
312: 12,
313: 13,
314: 14,

402: 15,
403:  3,
404:  4,
405:  5,
406:  6,
407:  7,
408:  8,
409:  9,
410: 10,
411: 11,
412: 12,
413: 13,
414: 14,

501: 16,
502: 17
}

# 顺子最大最小权重
ShunziMaxWeight = 14
ShunziMinWeight = 3

#对子最大最小权重
DuiziMaxWeight = 15
DuiziMinWeight = 3

#算大牌的权重
DapaiWeight = 15

#大小王权重
XiaoWangWeight = 16
DaWangWeight = 17

MinWeightCard = 3

class PlayoutCardType:
	# 无效
	Invalid = 0
	# 单张
	Danzhang = 1
	# 对子
	Duizi = 2
	# 三不带
	Sanbudai = 3
	# 三带一
	Sandaiyi = 4
	# 连对
	Liandui = 5
	# 顺子
	Shunzi = 6
	# 炸弹
	Zhadan = 7
	# 四带一
	Sidaiyi = 8
	# 四带二
	Sidaier = 9
	# 王炸
	Wangzha = 10
	# 飞机
	Feiji = 11
	# 最大
	Max = 12

# 出牌类型权重
PlayoutCardTypeWeight = {
	PlayoutCardType.Danzhang : 1,
	PlayoutCardType.Duizi : 1,
	PlayoutCardType.Sanbudai : 1,
	PlayoutCardType.Sandaiyi : 1,
	PlayoutCardType.Liandui : 1,
	PlayoutCardType.Shunzi : 1,
	PlayoutCardType.Zhadan : 2,
	PlayoutCardType.Sidaiyi : 1,
	PlayoutCardType.Sidaier : 1,
	PlayoutCardType.Wangzha : 3,
}





























